using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace HKB.Data.Dal
{
	[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), HelpKeyword("vs.data.DataSet"), DesignerCategory("code"), ToolboxItem(true), System.Xml.Serialization.XmlRoot("H_Message"), System.Xml.Serialization.XmlSchemaProvider("GetTypedDataSetSchema")]
	[System.Serializable]
	public class H_Message : DataSet
	{
		public delegate void HL_MessageRowChangeEventHandler(object sender, H_Message.HL_MessageRowChangeEvent e);
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), System.Xml.Serialization.XmlSchemaProvider("GetTypedTableSchema")]
		[System.Serializable]
		public class HL_MessageDataTable : DataTable, System.Collections.IEnumerable
		{
			private DataColumn columnMessageID;
			private DataColumn columnSender;
			private DataColumn columnReceiver;
			private DataColumn columnTitle;
			private DataColumn columnContent;
			private DataColumn columnDelR;
			private DataColumn columnSendTime;
			private DataColumn columnDelS;
			private DataColumn columnIsSend;
			private DataColumn columnIsRead;
			public event H_Message.HL_MessageRowChangeEventHandler HL_MessageRowChanging;
			public event H_Message.HL_MessageRowChangeEventHandler HL_MessageRowChanged;
			public event H_Message.HL_MessageRowChangeEventHandler HL_MessageRowDeleting;
			public event H_Message.HL_MessageRowChangeEventHandler HL_MessageRowDeleted;
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn MessageIDColumn
			{
				get
				{
					return this.columnMessageID;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn SenderColumn
			{
				get
				{
					return this.columnSender;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ReceiverColumn
			{
				get
				{
					return this.columnReceiver;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn TitleColumn
			{
				get
				{
					return this.columnTitle;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ContentColumn
			{
				get
				{
					return this.columnContent;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn DelRColumn
			{
				get
				{
					return this.columnDelR;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn SendTimeColumn
			{
				get
				{
					return this.columnSendTime;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn DelSColumn
			{
				get
				{
					return this.columnDelS;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn IsSendColumn
			{
				get
				{
					return this.columnIsSend;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn IsReadColumn
			{
				get
				{
					return this.columnIsRead;
				}
			}
			[Browsable(false), System.Diagnostics.DebuggerNonUserCode]
			public int Count
			{
				get
				{
					return base.Rows.Count;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public H_Message.HL_MessageRow this[int index]
			{
				get
				{
					return (H_Message.HL_MessageRow)base.Rows[index];
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public HL_MessageDataTable()
			{
				base.TableName = "HL_Message";
				this.BeginInit();
				this.InitClass();
				this.EndInit();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal HL_MessageDataTable(DataTable table)
			{
				base.TableName = table.TableName;
				if (table.CaseSensitive != table.DataSet.CaseSensitive)
				{
					base.CaseSensitive = table.CaseSensitive;
				}
				if (table.Locale.ToString() != table.DataSet.Locale.ToString())
				{
					base.Locale = table.Locale;
				}
				if (table.Namespace != table.DataSet.Namespace)
				{
					base.Namespace = table.Namespace;
				}
				base.Prefix = table.Prefix;
				base.MinimumCapacity = table.MinimumCapacity;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected HL_MessageDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
			{
				this.InitVars();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void AddHL_MessageRow(H_Message.HL_MessageRow row)
			{
				base.Rows.Add(row);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public H_Message.HL_MessageRow AddHL_MessageRow(string Sender, string Receiver, string Title, string Content, int DelR, System.DateTime SendTime, int DelS, int IsSend, int IsRead)
			{
				H_Message.HL_MessageRow hL_MessageRow = (H_Message.HL_MessageRow)base.NewRow();
				hL_MessageRow.ItemArray = new object[]
				{
					null,
					Sender,
					Receiver,
					Title,
					Content,
					DelR,
					SendTime,
					DelS,
					IsSend,
					IsRead
				};
				base.Rows.Add(hL_MessageRow);
				return hL_MessageRow;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public H_Message.HL_MessageRow FindByMessageID(int MessageID)
			{
				return (H_Message.HL_MessageRow)base.Rows.Find(new object[]
				{
					MessageID
				});
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public virtual System.Collections.IEnumerator GetEnumerator()
			{
				return base.Rows.GetEnumerator();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public override DataTable Clone()
			{
				H_Message.HL_MessageDataTable hL_MessageDataTable = (H_Message.HL_MessageDataTable)base.Clone();
				hL_MessageDataTable.InitVars();
				return hL_MessageDataTable;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override DataTable CreateInstance()
			{
				return new H_Message.HL_MessageDataTable();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal void InitVars()
			{
				this.columnMessageID = base.Columns["MessageID"];
				this.columnSender = base.Columns["Sender"];
				this.columnReceiver = base.Columns["Receiver"];
				this.columnTitle = base.Columns["Title"];
				this.columnContent = base.Columns["Content"];
				this.columnDelR = base.Columns["DelR"];
				this.columnSendTime = base.Columns["SendTime"];
				this.columnDelS = base.Columns["DelS"];
				this.columnIsSend = base.Columns["IsSend"];
				this.columnIsRead = base.Columns["IsRead"];
			}
			[System.Diagnostics.DebuggerNonUserCode]
			private void InitClass()
			{
				this.columnMessageID = new DataColumn("MessageID", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnMessageID);
				this.columnSender = new DataColumn("Sender", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnSender);
				this.columnReceiver = new DataColumn("Receiver", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnReceiver);
				this.columnTitle = new DataColumn("Title", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnTitle);
				this.columnContent = new DataColumn("Content", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnContent);
				this.columnDelR = new DataColumn("DelR", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnDelR);
				this.columnSendTime = new DataColumn("SendTime", typeof(System.DateTime), null, MappingType.Element);
				base.Columns.Add(this.columnSendTime);
				this.columnDelS = new DataColumn("DelS", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnDelS);
				this.columnIsSend = new DataColumn("IsSend", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnIsSend);
				this.columnIsRead = new DataColumn("IsRead", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnIsRead);
				base.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[]
				{
					this.columnMessageID
				}, true));
				this.columnMessageID.AutoIncrement = true;
				this.columnMessageID.AllowDBNull = false;
				this.columnMessageID.ReadOnly = true;
				this.columnMessageID.Unique = true;
				this.columnSender.MaxLength = 30;
				this.columnReceiver.MaxLength = 50;
				this.columnTitle.MaxLength = 50;
				this.columnContent.MaxLength = 2147483647;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public H_Message.HL_MessageRow NewHL_MessageRow()
			{
				return (H_Message.HL_MessageRow)base.NewRow();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
			{
				return new H_Message.HL_MessageRow(builder);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override System.Type GetRowType()
			{
				return typeof(H_Message.HL_MessageRow);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowChanged(DataRowChangeEventArgs e)
			{
				base.OnRowChanged(e);
				if (this.HL_MessageRowChanged != null)
				{
					this.HL_MessageRowChanged(this, new H_Message.HL_MessageRowChangeEvent((H_Message.HL_MessageRow)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowChanging(DataRowChangeEventArgs e)
			{
				base.OnRowChanging(e);
				if (this.HL_MessageRowChanging != null)
				{
					this.HL_MessageRowChanging(this, new H_Message.HL_MessageRowChangeEvent((H_Message.HL_MessageRow)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowDeleted(DataRowChangeEventArgs e)
			{
				base.OnRowDeleted(e);
				if (this.HL_MessageRowDeleted != null)
				{
					this.HL_MessageRowDeleted(this, new H_Message.HL_MessageRowChangeEvent((H_Message.HL_MessageRow)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowDeleting(DataRowChangeEventArgs e)
			{
				base.OnRowDeleting(e);
				if (this.HL_MessageRowDeleting != null)
				{
					this.HL_MessageRowDeleting(this, new H_Message.HL_MessageRowChangeEvent((H_Message.HL_MessageRow)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void RemoveHL_MessageRow(H_Message.HL_MessageRow row)
			{
				base.Rows.Remove(row);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs)
			{
				System.Xml.Schema.XmlSchemaComplexType xmlSchemaComplexType = new System.Xml.Schema.XmlSchemaComplexType();
				System.Xml.Schema.XmlSchemaSequence xmlSchemaSequence = new System.Xml.Schema.XmlSchemaSequence();
				H_Message h_Message = new H_Message();
				xs.Add(h_Message.GetSchemaSerializable());
				System.Xml.Schema.XmlSchemaAny xmlSchemaAny = new System.Xml.Schema.XmlSchemaAny();
				xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
				xmlSchemaAny.MinOccurs = 0m;
				xmlSchemaAny.MaxOccurs = 79228162514264337593543950335m;
				xmlSchemaAny.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
				xmlSchemaSequence.Items.Add(xmlSchemaAny);
				System.Xml.Schema.XmlSchemaAny xmlSchemaAny2 = new System.Xml.Schema.XmlSchemaAny();
				xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
				xmlSchemaAny2.MinOccurs = 1m;
				xmlSchemaAny2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
				xmlSchemaSequence.Items.Add(xmlSchemaAny2);
				System.Xml.Schema.XmlSchemaAttribute xmlSchemaAttribute = new System.Xml.Schema.XmlSchemaAttribute();
				xmlSchemaAttribute.Name = "namespace";
				xmlSchemaAttribute.FixedValue = h_Message.Namespace;
				xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
				System.Xml.Schema.XmlSchemaAttribute xmlSchemaAttribute2 = new System.Xml.Schema.XmlSchemaAttribute();
				xmlSchemaAttribute2.Name = "tableTypeName";
				xmlSchemaAttribute2.FixedValue = "HL_MessageDataTable";
				xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
				xmlSchemaComplexType.Particle = xmlSchemaSequence;
				return xmlSchemaComplexType;
			}
		}
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
		public class HL_MessageRow : DataRow
		{
			private H_Message.HL_MessageDataTable tableHL_Message;
			[System.Diagnostics.DebuggerNonUserCode]
			public int MessageID
			{
				get
				{
					return (int)base[this.tableHL_Message.MessageIDColumn];
				}
				set
				{
					base[this.tableHL_Message.MessageIDColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string Sender
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Message.SenderColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“Sender”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.SenderColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string Receiver
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Message.ReceiverColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“Receiver”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.ReceiverColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string Title
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Message.TitleColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“Title”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.TitleColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string Content
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Message.ContentColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“Content”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.ContentColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int DelR
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Message.DelRColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“DelR”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.DelRColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public System.DateTime SendTime
			{
				get
				{
					System.DateTime result;
					try
					{
						result = (System.DateTime)base[this.tableHL_Message.SendTimeColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“SendTime”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.SendTimeColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int DelS
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Message.DelSColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“DelS”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.DelSColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int IsSend
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Message.IsSendColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“IsSend”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.IsSendColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int IsRead
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Message.IsReadColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Message”中列“IsRead”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Message.IsReadColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal HL_MessageRow(DataRowBuilder rb) : base(rb)
			{
				this.tableHL_Message = (H_Message.HL_MessageDataTable)base.Table;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsSenderNull()
			{
				return base.IsNull(this.tableHL_Message.SenderColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetSenderNull()
			{
				base[this.tableHL_Message.SenderColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsReceiverNull()
			{
				return base.IsNull(this.tableHL_Message.ReceiverColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetReceiverNull()
			{
				base[this.tableHL_Message.ReceiverColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsTitleNull()
			{
				return base.IsNull(this.tableHL_Message.TitleColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetTitleNull()
			{
				base[this.tableHL_Message.TitleColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsContentNull()
			{
				return base.IsNull(this.tableHL_Message.ContentColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetContentNull()
			{
				base[this.tableHL_Message.ContentColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsDelRNull()
			{
				return base.IsNull(this.tableHL_Message.DelRColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetDelRNull()
			{
				base[this.tableHL_Message.DelRColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsSendTimeNull()
			{
				return base.IsNull(this.tableHL_Message.SendTimeColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetSendTimeNull()
			{
				base[this.tableHL_Message.SendTimeColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsDelSNull()
			{
				return base.IsNull(this.tableHL_Message.DelSColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetDelSNull()
			{
				base[this.tableHL_Message.DelSColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsIsSendNull()
			{
				return base.IsNull(this.tableHL_Message.IsSendColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetIsSendNull()
			{
				base[this.tableHL_Message.IsSendColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsIsReadNull()
			{
				return base.IsNull(this.tableHL_Message.IsReadColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetIsReadNull()
			{
				base[this.tableHL_Message.IsReadColumn] = System.Convert.DBNull;
			}
		}
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
		public class HL_MessageRowChangeEvent : System.EventArgs
		{
			private H_Message.HL_MessageRow eventRow;
			private DataRowAction eventAction;
			[System.Diagnostics.DebuggerNonUserCode]
			public H_Message.HL_MessageRow Row
			{
				get
				{
					return this.eventRow;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataRowAction Action
			{
				get
				{
					return this.eventAction;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public HL_MessageRowChangeEvent(H_Message.HL_MessageRow row, DataRowAction action)
			{
				this.eventRow = row;
				this.eventAction = action;
			}
		}
		private H_Message.HL_MessageDataTable tableHL_Message;
		private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
		[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), System.Diagnostics.DebuggerNonUserCode]
		public H_Message.HL_MessageDataTable HL_Message
		{
			get
			{
				return this.tableHL_Message;
			}
		}
		[Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible), System.Diagnostics.DebuggerNonUserCode]
		public override SchemaSerializationMode SchemaSerializationMode
		{
			get
			{
				return this._schemaSerializationMode;
			}
			set
			{
				this._schemaSerializationMode = value;
			}
		}
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
		public new DataTableCollection Tables
		{
			get
			{
				return base.Tables;
			}
		}
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
		public new DataRelationCollection Relations
		{
			get
			{
				return base.Relations;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public H_Message()
		{
			base.BeginInit();
			this.InitClass();
			CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
			base.Tables.CollectionChanged += value;
			base.Relations.CollectionChanged += value;
			base.EndInit();
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected H_Message(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false)
		{
			if (base.IsBinarySerialized(info, context))
			{
				this.InitVars(false);
				CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
				this.Tables.CollectionChanged += value;
				this.Relations.CollectionChanged += value;
			}
			else
			{
				string s = (string)info.GetValue("XmlSchema", typeof(string));
				if (base.DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
				{
					DataSet dataSet = new DataSet();
					dataSet.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(s)));
					if (dataSet.Tables["HL_Message"] != null)
					{
						base.Tables.Add(new H_Message.HL_MessageDataTable(dataSet.Tables["HL_Message"]));
					}
					base.DataSetName = dataSet.DataSetName;
					base.Prefix = dataSet.Prefix;
					base.Namespace = dataSet.Namespace;
					base.Locale = dataSet.Locale;
					base.CaseSensitive = dataSet.CaseSensitive;
					base.EnforceConstraints = dataSet.EnforceConstraints;
					base.Merge(dataSet, false, MissingSchemaAction.Add);
					this.InitVars();
				}
				else
				{
					base.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(s)));
				}
				base.GetSerializationData(info, context);
				CollectionChangeEventHandler value2 = new CollectionChangeEventHandler(this.SchemaChanged);
				base.Tables.CollectionChanged += value2;
				this.Relations.CollectionChanged += value2;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override void InitializeDerivedDataSet()
		{
			base.BeginInit();
			this.InitClass();
			base.EndInit();
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public override DataSet Clone()
		{
			H_Message h_Message = (H_Message)base.Clone();
			h_Message.InitVars();
			h_Message.SchemaSerializationMode = this.SchemaSerializationMode;
			return h_Message;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override bool ShouldSerializeTables()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override bool ShouldSerializeRelations()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override void ReadXmlSerializable(System.Xml.XmlReader reader)
		{
			if (base.DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
			{
				this.Reset();
				DataSet dataSet = new DataSet();
				dataSet.ReadXml(reader);
				if (dataSet.Tables["HL_Message"] != null)
				{
					base.Tables.Add(new H_Message.HL_MessageDataTable(dataSet.Tables["HL_Message"]));
				}
				base.DataSetName = dataSet.DataSetName;
				base.Prefix = dataSet.Prefix;
				base.Namespace = dataSet.Namespace;
				base.Locale = dataSet.Locale;
				base.CaseSensitive = dataSet.CaseSensitive;
				base.EnforceConstraints = dataSet.EnforceConstraints;
				base.Merge(dataSet, false, MissingSchemaAction.Add);
				this.InitVars();
			}
			else
			{
				base.ReadXml(reader);
				this.InitVars();
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override System.Xml.Schema.XmlSchema GetSchemaSerializable()
		{
			System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
			base.WriteXmlSchema(new System.Xml.XmlTextWriter(memoryStream, null));
			memoryStream.Position = 0L;
			return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(memoryStream), null);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		internal void InitVars()
		{
			this.InitVars(true);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		internal void InitVars(bool initTable)
		{
			this.tableHL_Message = (H_Message.HL_MessageDataTable)base.Tables["HL_Message"];
			if (initTable)
			{
				if (this.tableHL_Message != null)
				{
					this.tableHL_Message.InitVars();
				}
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void InitClass()
		{
			base.DataSetName = "H_Message";
			base.Prefix = "";
			base.Namespace = "http://tempuri.org/H_Message.xsd";
			base.EnforceConstraints = true;
			this.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
			this.tableHL_Message = new H_Message.HL_MessageDataTable();
			base.Tables.Add(this.tableHL_Message);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private bool ShouldSerializeHL_Message()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void SchemaChanged(object sender, CollectionChangeEventArgs e)
		{
			if (e.Action == CollectionChangeAction.Remove)
			{
				this.InitVars();
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs)
		{
			H_Message h_Message = new H_Message();
			System.Xml.Schema.XmlSchemaComplexType xmlSchemaComplexType = new System.Xml.Schema.XmlSchemaComplexType();
			System.Xml.Schema.XmlSchemaSequence xmlSchemaSequence = new System.Xml.Schema.XmlSchemaSequence();
			xs.Add(h_Message.GetSchemaSerializable());
			System.Xml.Schema.XmlSchemaAny xmlSchemaAny = new System.Xml.Schema.XmlSchemaAny();
			xmlSchemaAny.Namespace = h_Message.Namespace;
			xmlSchemaSequence.Items.Add(xmlSchemaAny);
			xmlSchemaComplexType.Particle = xmlSchemaSequence;
			return xmlSchemaComplexType;
		}
	}
}
